<?php

/*
 * Author: thanhvd
 * Mail  : thanhvd89@gmail.com
 * Blog  : thanhvd89.wordpress.com
 * 
 */

class Config {
    
    public static $driver = "mysql";
    public static $server = "localhost";
    public static $user = "root";
    public static $pwd = "";
    public static $db = "tpstudy";
    
    public static function connect() {
        $tp_conn = NewADOConnection(self::$driver);
        $tp_conn->Connect(self::$server, self::$user, self::$pwd, self::$db);
        return $tp_conn;
    }
}

?>
